package huy.mmt.gamelathinh.dialog;

import huy.mmt.gamelathinh.R;
import huy.mmt.gamelathinh.components.Level;
import huy.mmt.gamelathinh.util.Util;
import huy.mmt.gamelathinh.util.UtilDialog;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.widget.LinearLayout;
import android.widget.TextView;

/**
 * Hiá»‡n thá»‹ khi báº¯t Ä‘áº§u chÆ¡i game. Dialog cho biáº¿t báº¡n chÆ¡i level bao nhiÃªu,
 * thá»�i gian chÆ¡i cá»§a level Ä‘Ã³.
 * 
 * @author Huyfau
 * 
 */
public class DialogPlay extends Dialog {

	Activity activity;
	TextView textView_level, textView_time;

	/**
	 * 
	 * @param context
	 * @param playnext
	 *            : XÃ¡c Ä‘á»‹nh lÃ  reset game hay lÃ  báº¯t Ä‘áº§u chÆ¡i má»›i
	 */
	public DialogPlay(Context context) {
		super(context);
		UtilDialog.iniDialog(this);
		activity = (Activity) context;
		setContentView(R.layout.dialog_play);
		// resize dialog
		LinearLayout linearLayout = (LinearLayout) findViewById(R.id.linearlayout_all);
		Util.resizeDialog(linearLayout);
		
		textView_level = (TextView) findViewById(R.id.dialogplay_level);
		textView_level.setText(String.valueOf(Level.level_current));
		
		//textView_time = (TextView) findViewById(R.id.dialogplay_timer);
		//textView_time.setText(UtilFormat.getTime(Play.difficutly.getTimer(Level.level_current, do_kho)));
		// textView_time.setText(UtilFormat.getTime(Level.getTimeLevel()));
	}

}